import request from '@/utils/request'

// 查询课程设计列表
export function listCourse_design(query) {
  return request({
    url: '/teaching/course_design/list',
    method: 'get',
    params: query
  })
}

// 查询课程设计详细
export function getCourse_design(id) {
  return request({
    url: '/teaching/course_design/' + id,
    method: 'get'
  })
}

// 新增课程设计
export function addCourse_design(data) {
  return request({
    url: '/teaching/course_design',
    method: 'post',
    data: data
  })
}

export function saveRelatedInterview(courseDesignId,selectedInterviewIdList) {
  return request({
    url: '/teaching/course_design/related_interview/'+courseDesignId,
    method: 'put',
    data:selectedInterviewIdList
  })
}
// 修改课程设计
export function updateCourse_design(stage,courseDesignList) {
  return request({
    url: '/teaching/course_design/'+stage,
    method: 'put',
    data:courseDesignList
  })
}

// 删除课程设计
export function delCourse_design(id) {
  return request({
    url: '/teaching/course_design/' + id,
    method: 'delete'
  })
}
